﻿using LianXi1013.Entity.Menu;
using LianXi1013.Repostory.Menu;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace LianXi1013.Service.Menu
{
    public class MenuInforService : IMenuInforService
    {
        private readonly IMenuInforRepostory menuInforRepostory;

        public MenuInforService(IMenuInforRepostory menuInforRepostory)
        {
            this.menuInforRepostory = menuInforRepostory;
        }

        /// <summary>
        /// 菜单查询
        /// </summary>
        /// <returns></returns>
        public List<MenuInfor> GetMenu(int id)
        {
            return menuInforRepostory.GetMenu(id);
        }
    }
}
